.class public Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field private a:Landroid/os/Handler;

.field private b:Landroid/widget/ListView;

.field private c:Landroid/widget/LinearLayout;

.field private d:Landroid/widget/RelativeLayout;

.field private e:Ljava/util/ArrayList;

.field private f:Lcom/waiqin365/lightapp/kehu/b/bo;

.field private g:Lcom/waiqin365/base/db/cmfilteritem/a;

.field private h:Z

.field private i:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    return-object v0
.end method

.method private a()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/kehu/bn;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/bn;-><init>(Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a:Landroid/os/Handler;

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;)Lcom/waiqin365/lightapp/kehu/b/bo;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    return-object v0
.end method

.method private b()V
    .locals 4

    const/4 v3, 0x0

    const v0, 0x7f0c0232

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0234

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const v1, 0x7f08003b

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c04f9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    const v1, 0x7f0800a3

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c04da

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->b:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->b:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/bo;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/kehu/b/bo;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/bo;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/bo;-><init>(Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Lcom/waiqin365/lightapp/kehu/b/bq;)V

    const-string/jumbo v0, "0"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Z)V

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    const v1, 0x7f0200c6

    const v2, 0x7f0200c5

    invoke-virtual {v0, v1, v2}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(II)V

    const v0, 0x7f0c04d9

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->d:Landroid/widget/RelativeLayout;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->d:Landroid/widget/RelativeLayout;

    invoke-virtual {v0, p0}, Landroid/widget/RelativeLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->b:Landroid/widget/ListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v0, 0x7f0c0247

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->c:Landroid/widget/LinearLayout;

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->h:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->c:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    check-cast v0, Landroid/widget/FrameLayout$LayoutParams;

    const/high16 v1, 0x420c0000    # 35.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v1, v3, v3, v3}, Landroid/widget/FrameLayout$LayoutParams;->setMargins(IIII)V

    :cond_0
    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->showProgressDialog(Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightapp/kehu/bp;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/bp;-><init>(Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/bp;->start()V

    return-void

    :cond_1
    const-string/jumbo v0, "1"

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->i:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Z)V

    goto :goto_0

    :cond_2
    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    invoke-virtual {v0}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    const-string/jumbo v1, "is_selected_area_leaf"

    invoke-static {v0, v1, v3}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/content/Context;Ljava/lang/String;Z)Z

    move-result v0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->f:Lcom/waiqin365/lightapp/kehu/b/bo;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/kehu/b/bo;->a(Z)V

    goto :goto_0
.end method

.method private c()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    const/4 v2, 0x0

    invoke-static {p0, v0, v1, v2}, Lcom/waiqin365/lightapp/kehu/c/b;->a(Landroid/content/Context;Ljava/util/ArrayList;Lcom/waiqin365/base/db/cmfilteritem/a;Lcom/waiqin365/base/db/cmfilteritem/a;)Z

    move-result v0

    if-eqz v0, :cond_0

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    const/16 v1, 0xa

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    :goto_0
    return-void

    :cond_0
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    const/16 v1, 0xb

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;)V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->c()V

    return-void
.end method

.method private d()V
    .locals 5

    const/4 v3, 0x0

    invoke-static {}, Lcom/waiqin365/base/db/cmfilteritem/b;->a()Lcom/waiqin365/base/db/cmfilteritem/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/b;->b()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_2

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_2

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_0
    :goto_0
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    move v2, v3

    :goto_1
    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    if-eqz v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v2, v1, :cond_3

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v1, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Lcom/waiqin365/base/db/cmfilteritem/a;Lcom/waiqin365/base/db/cmfilteritem/a;)Z

    move-result v1

    if-eqz v1, :cond_1

    const/4 v1, 0x1

    :goto_2
    if-nez v1, :cond_0

    invoke-static {}, Lcom/waiqin365/base/db/cmfilteritem/b;->a()Lcom/waiqin365/base/db/cmfilteritem/b;

    move-result-object v1

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/cmfilteritem/b;->a(Ljava/lang/String;)V

    goto :goto_0

    :cond_1
    add-int/lit8 v1, v2, 0x1

    move v2, v1

    goto :goto_1

    :cond_2
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightapp/kehu/CMRecentSelectedAreaActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string/jumbo v1, "windowMode"

    iget-boolean v2, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->h:Z

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    invoke-virtual {p0, v0, v3}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->startActivityForResult(Landroid/content/Intent;I)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->overridePendingTransition(II)V

    return-void

    :cond_3
    move v1, v3

    goto :goto_2
.end method


# virtual methods
.method public a(Lcom/waiqin365/base/db/cmfilteritem/a;)Ljava/util/ArrayList;
    .locals 4

    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    if-eqz p1, :cond_0

    invoke-virtual {p1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p1}, Lcom/waiqin365/base/db/cmfilteritem/a;->g()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Lcom/waiqin365/base/db/cmfilteritem/a;->g()Ljava/util/List;

    move-result-object v3

    const/4 v0, 0x0

    move v1, v0

    :goto_0
    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v0

    if-ge v1, v0, :cond_0

    invoke-interface {v3, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Lcom/waiqin365/base/db/cmfilteritem/a;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_0
    return-object v2
.end method

.method public a(Landroid/content/Intent;)V
    .locals 6

    const/4 v2, 0x0

    new-instance v4, Lcom/waiqin365/lightapp/view/a/a;

    invoke-direct {v4}, Lcom/waiqin365/lightapp/view/a/a;-><init>()V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "returnTo"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v4, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    if-eqz p1, :cond_2

    const-string/jumbo v0, "cmFilterItem"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    if-eqz v0, :cond_2

    const-string/jumbo v0, "cmFilterItem"

    invoke-virtual {p1, v0}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Lcom/waiqin365/base/db/cmfilteritem/a;)Ljava/util/ArrayList;

    move-result-object v5

    const-string/jumbo v0, ""

    move v1, v2

    :goto_0
    if-eqz v5, :cond_0

    invoke-virtual {v5}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v1, v3, :cond_0

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v5, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, ","

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    add-int/lit8 v0, v1, 0x1

    move v1, v0

    move-object v0, v3

    goto :goto_0

    :cond_0
    const-string/jumbo v1, ","

    invoke-virtual {v0, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-virtual {v0}, Ljava/lang/String;->length()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    :cond_1
    const-string/jumbo v1, "childIds"

    invoke-virtual {p1, v1, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_2
    iput-object p1, v4, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, v4}, Ljava/util/Observable;->notifyObservers(Ljava/lang/Object;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->back()V

    return-void
.end method

.method public a(Lcom/waiqin365/base/db/cmfilteritem/a;Lcom/waiqin365/base/db/cmfilteritem/a;)Z
    .locals 3

    invoke-virtual {p1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    iget-object v0, p2, Lcom/waiqin365/base/db/cmfilteritem/a;->b:Ljava/util/ArrayList;

    if-eqz v0, :cond_2

    iget-object v0, p2, Lcom/waiqin365/base/db/cmfilteritem/a;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_2

    iget-object v0, p2, Lcom/waiqin365/base/db/cmfilteritem/a;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {p0, p1, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Lcom/waiqin365/base/db/cmfilteritem/a;Lcom/waiqin365/base/db/cmfilteritem/a;)Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-virtual {p0, p1, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Lcom/waiqin365/base/db/cmfilteritem/a;Lcom/waiqin365/base/db/cmfilteritem/a;)Z

    move-result v0

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 0

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    packed-switch p2, :pswitch_data_0

    :cond_0
    :goto_0
    return-void

    :pswitch_0
    if-eqz p3, :cond_0

    invoke-virtual {p0, p3}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Landroid/content/Intent;)V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch -0x1
        :pswitch_0
    .end packed-switch
.end method

.method public onBackPressed()V
    .locals 3

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "cmFilterItem"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Landroid/content/Intent;)V

    :goto_0
    return-void

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Landroid/content/Intent;)V

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    if-eqz v0, :cond_0

    new-instance v0, Landroid/content/Intent;

    invoke-direct {v0}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v1, "cmFilterItem"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Landroid/content/Intent;)V

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a(Landroid/content/Intent;)V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->d()V

    goto :goto_0

    :sswitch_data_0
    .sparse-switch
        0x7f0c0232 -> :sswitch_0
        0x7f0c04d9 -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 4

    const/4 v3, 0x0

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f0300c0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->setContentView(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    new-instance v1, Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-direct {v1}, Lcom/waiqin365/base/db/cmfilteritem/a;-><init>()V

    const-string/jumbo v0, "-1"

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Ljava/lang/String;)V

    const v0, 0x7f0805b2

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->b(Ljava/lang/String;)V

    const/4 v0, 0x0

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->a(Lcom/waiqin365/base/db/cmfilteritem/a;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "cmFilterItem"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getSerializableExtra(Ljava/lang/String;)Ljava/io/Serializable;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/db/cmfilteritem/a;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v2, "firstItemName"

    invoke-virtual {v0, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    if-lez v2, :cond_0

    invoke-virtual {v1, v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->b(Ljava/lang/String;)V

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v0}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, ""

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "-1"

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->g:Lcom/waiqin365/base/db/cmfilteritem/a;

    invoke-virtual {v2}, Lcom/waiqin365/base/db/cmfilteritem/a;->a()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    :cond_1
    const/4 v0, 0x1

    iput-boolean v0, v1, Lcom/waiqin365/base/db/cmfilteritem/a;->a:Z

    :goto_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "windowMode"

    invoke-virtual {v0, v1, v3}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->h:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "isLeafCheckOnly"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->i:Ljava/lang/String;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/kehu/CMCustViewAreaActivity;->b()V

    return-void

    :cond_2
    iput-boolean v3, v1, Lcom/waiqin365/base/db/cmfilteritem/a;->a:Z

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 0

    invoke-super {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onDestroy()V

    return-void
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 1

    invoke-virtual {p1}, Landroid/widget/AdapterView;->getAdapter()Landroid/widget/Adapter;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/b/bo;

    invoke-virtual {v0, p3}, Lcom/waiqin365/lightapp/kehu/b/bo;->b(I)V

    return-void
.end method
